package com.chen.jwt.mapper;

import com.chen.jwt.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @author 若晨
 * @version 1.0.0
 * @ClassName userMapper.java
 * @Description TODO
 * @createTime 2022年08月02日 19:30:00
 */
@Mapper
public interface UserMapper {
    @Select("select * from user where id = #{id}")
    User selectById(@Param("id") Integer userId);

    User login(User user);
}
